package designPattern.factory.factoryMethod;

public class Magnate {

	/**
	 * 工厂方法模式(Factory Method)
	 * @param args
	 */
	public static void main(String[] args) {
		Car car=new BmwDriver().driverCar();
		car.drive();
	}

}
